﻿using IdentityModel;
using IdentityModel.Client;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Models.Identity;
using Models.JsonResultModel;
using System.Net.Http.Headers;
using System.Security.Principal;
using UtilsORM.MySqlData;

using ServiceWeb.DBGateway;
using UtilsBase;
using FileServer.Controllers.API.Common;
namespace FileServer.Controllers.API.Mobile
{
    [Route("api/mobile/[controller]/[action]")]
    [ApiController]
    // [BasicAuthentication]
    public class PruductController : ApiCommonControllerBase
    {

        public RespResultData getProductList(string cguid)
        {
            return RespResult.Sucess(new DBIotProduct().getProductList(cguid));
        }

        public RespResultData getProduct(string pguid)
        {
            return RespResult.Sucess(new DBIotProduct().getProduct(pguid));
        }


    }
}
